package com.example.commom.dsl;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 *  es 章节实体
 */
@Data
public class ChapterDSL {
    private static final long serialVersionUID = 1L;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long chapterId;
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long bookId;
    private String title;
    private String content;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publicationDate;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDate;
    private Boolean isApproved;
    private Boolean isAvailable;
    private List<String> suggestion;

}
